(ns pe.files)

(defn tokenize-str [s regex]
  (map #(.trim %) (seq (.split regex s))))

(defn read-lines [fname]
  (tokenize-str (slurp fname) #"\n"))

(defn read-csv [fname]
  (tokenize-str (slurp fname) #","))

(defn remove-quotes [strings]
  (map #(.substring % 1 (dec (.length %))) strings))